package com.xunfang.mapper;

import com.xunfang.bean.Building;
import com.xunfang.bean.House;
import com.xunfang.bean.dto.HouseDTO;

import java.util.List;

/**
 * @author yellow Docter
 * @date 2023 -11-08
 * @desc
 */
public interface HouseMapper {


    List<House> findHouseAll();
    int saveHouse(HouseDTO houseDTO);
    int deleteHouseById(Integer id);

    //通过 ownerId 查询 House
    List<House> findHousesByOwnerBy(Integer id);

    //通过 buildingId 查询 Building
    List<House> findBuildByBuildingId(Integer buildingId);


    //修改操作
    int updateHouse(HouseDTO houseDTO);
}
